#!/usr/bin/python

# Basic function that demonstrates use of 'if ...else...' statement and 'for' loop in python. This function also demonstrates syntax of using sleep() funxtion in python and uses time.time(). More details use help(time.time)
 
import sys
import time


def main():
 for x in range(0,10):
  if x > 5:
   print 'Sleeping for %d seconds' % (x-5)
   time.sleep(x-5)
  else:
   print 'Sleeping for %d seconds' % (x)
   time.sleep(x)
  print 'Whats up', sys.argv[1]
# print time.time() 

if __name__ == '__main__':
 main()
